﻿
@{
    ViewBag.Title = "淘宝订单-物流供应商选择";
    Layout = "~/Views/Shared/_LayoutEasyUI.cshtml";
}

<table id="grid-list"> </table>

@section scripts{
    <script>
        $(function () {
            Grid.LoadData();
            parent.supplierGrid = Grid;
        });

        var Grid = {
            LoadData: function () {
                Grid.list = $("#grid-list").datagrid({
                    url: "/Supplier/List",
                    title: '物流供应商列表',
                    fit: true,
                    fitColumns: true,
                    singleSelect: false,
                    rownumbers: true,
                    nowrap: false,
                    striped: true, //隔行变色
                    //toolbar: '#toolbar',
                    columns: [[
                      { field: 'ck', checkbox: true, align: 'left', width: 50 },
                      { field: 'FName', title: '物流供应商', width: 100, align: 'center' }
                    ]]
                });
            },
            GetChecked: function () {
                return Grid.list.datagrid('getChecked');
            }
        }

    </script>
}